
Last chance! 50% off unlimited learning
Sale ends in
A log-likelihood ratio test for testing whether the sample mena direction is equal to some predefined one.
meandir.test(x, mu, B = 999)
A matrix with the data, unit vectors.
A unit vector with the hypothesized mean direction.
A number either 1, so no bootstrap calibration is performed or more than 1, so bootstrap calibration is performed.
A list including:
The sample mean direction
The p-value of the test.
The log-likelihood ratio test is performed.
Mardia, K. V. and Jupp, P. E. (2000). Directional statistics. Chicester: John Wiley & Sons.
# NOT RUN {
mu <- rnorm(5)
mu <- mu / sqrt( sum(mu^2) )
x <- rvmf(100, mu, 10)
meandir.test(x, mu, 1)
meandir.test(x, mu, 499)
# }
Run the code above in your browser using DataLab